﻿using YNTK.Common.Const;
using SqlSugar;
using System;

namespace YNTK.SubDev.Entitys
{
    /// <summary>
    /// 资产信息
    /// </summary>
    [SugarTable("zy_oa_capital")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class ZyOaCapitalEntity
    {
        /// <summary>
        /// 自然主键
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
        public string Id { get; set; }
        
        /// <summary>
        /// 自动编码
        /// </summary>
        [SugarColumn(ColumnName = "AutoNo")]        
        public string AutoNo { get; set; }
        
        /// <summary>
        /// 资产名称
        /// </summary>
        [SugarColumn(ColumnName = "FullName")]        
        public string FullName { get; set; }
        
        /// <summary>
        /// 资产编号
        /// </summary>
        [SugarColumn(ColumnName = "EnCode")]        
        public string EnCode { get; set; }
        
        /// <summary>
        /// 资产类型
        /// </summary>
        [SugarColumn(ColumnName = "CapitalType")]        
        public string CapitalType { get; set; }
        
        /// <summary>
        /// 使用期限（月）
        /// </summary>
        [SugarColumn(ColumnName = "Duration")]        
        public int? Duration { get; set; }
        
        /// <summary>
        /// 生产日期
        /// </summary>
        [SugarColumn(ColumnName = "ProductionDate")]        
        public DateTime? ProductionDate { get; set; }
        
        /// <summary>
        /// 到期时间
        /// </summary>
        [SugarColumn(ColumnName = "EndDate")]        
        public DateTime? EndDate { get; set; }
        
        /// <summary>
        /// 产品价格
        /// </summary>
        [SugarColumn(ColumnName = "Price")]        
        public decimal Price { get; set; }
        
        /// <summary>
        /// 预计价值
        /// </summary>
        [SugarColumn(ColumnName = "PlanAmount")]        
        public decimal PlanAmount { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "IsDefault")]        
        public int? IsDefault { get; set; }
        
        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(ColumnName = "Description")]        
        public string Description { get; set; }
        
        /// <summary>
        /// 资产图片
        /// </summary>
        [SugarColumn(ColumnName = "Photo")]        
        public string Photo { get; set; }
        
        /// <summary>
        /// 排序
        /// </summary>
        [SugarColumn(ColumnName = "SortCode")]        
        public long SortCode { get; set; }
        
        /// <summary>
        /// 有效标志
        /// </summary>
        [SugarColumn(ColumnName = "EnabledMark")]        
        public int? EnabledMark { get; set; }
        
        /// <summary>
        /// 使用人员
        /// </summary>
        [SugarColumn(ColumnName = "UseUser")]        
        public string UseUser { get; set; }
        
        /// <summary>
        /// 使用部门
        /// </summary>
        [SugarColumn(ColumnName = "UseOrganize")]        
        public string UseOrganize { get; set; }
        
        /// <summary>
        /// 使用角色
        /// </summary>
        [SugarColumn(ColumnName = "UseRole")]        
        public string UseRole { get; set; }
        
        /// <summary>
        /// 管理员
        /// </summary>
        [SugarColumn(ColumnName = "Admin")]        
        public string Admin { get; set; }
        
        /// <summary>
        /// 使用范围
        /// </summary>
        [SugarColumn(ColumnName = "Range")]        
        public string Range { get; set; }
        
        /// <summary>
        /// 登记时间
        /// </summary>
        [SugarColumn(ColumnName = "CreatorTime")]        
        public DateTime? CreatorTime { get; set; }
        
        /// <summary>
        /// 登记人
        /// </summary>
        [SugarColumn(ColumnName = "CreatorUserId")]        
        public string CreatorUserId { get; set; }
        
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "LastModifyTime")]        
        public DateTime? LastModifyTime { get; set; }
        
        /// <summary>
        /// 修改人
        /// </summary>
        [SugarColumn(ColumnName = "LastModifyUserId")]        
        public string LastModifyUserId { get; set; }
        
        /// <summary>
        /// 关联流程
        /// </summary>
        [SugarColumn(ColumnName = "FlowId")]        
        public string FlowId { get; set; }
        
        /// <summary>
        /// 资产状态
        /// </summary>
        [SugarColumn(ColumnName = "State")]        
        public int? State { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Remark")]        
        public string Remark { get; set; }
        
        /// <summary>
        /// 附件
        /// </summary>
        [SugarColumn(ColumnName = "Appendix")]        
        public string Appendix { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare1")]        
        public string Spare1 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare2")]        
        public string Spare2 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare3")]        
        public string Spare3 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "PostilJson")]        
        public string PostilJson { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "PostilCount")]        
        public int? PostilCount { get; set; }
        
    }
}
